//路由表配置：src/routes/index.js
import About from '../pages/about/About'
import Home from '../pages/home/Home'
import Nopage from '../pages/404'
// 导入路由管理工具
import { RouteConfig } from 'react-router-config'

const routes: RouteConfig = [
  {
    path: '/',
    exact: true,
    component: Home
  },
  {
    path: '/home',
    exact: true,
    component: Home
  },
  {
    path: '/about',
    exact: true,
    component: About
  },
  {
    path: '*',
    exact: true,
    component: Nopage
  }
]

export default routes
